package com.azh.springcloud.service.Impl;


import com.azh.springcloud.dao.PaymentDao;
import com.azh.springcloud.entities.Payment;
import com.azh.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    };

    public Payment getPaymentByid(Long id){
        return paymentDao.getPaymentByid(id);
    };

}
